]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Handle screencast startup failures using special notification
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 7 Feb 2024 11:05:47 +0000 (12:05 +0100)
committerJonas Dreßler <verdre@v0yd.nl>
Sun, 11 Feb 2024 10:32:19 +0000 (11:32 +0100)
commit7133fac91fac640e5104daa0c9328a144067c2be
tree5d6654f3014b004eced95ebc89d24b0d581776ca
parent75f86a6f6079271ba48288a242d13f841f933d04
screenshot: Handle screencast startup failures using special notification

When the screencast fails to start, we currently don't really inform the
user, other than the red screencasting indicator in the panel going away.

Re-use the failure handling paths to also show a notification when the
screencast fails to start. The notification in this case obviously should
not have an action to open a file (there is no file), so make that depend
on whether this._screencastPath is set and unset the path.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2976>
js/ui/screenshot.js